<script setup>
import { ref } from "vue";
import request from "@/utils/request";

const message = ref("");
const name = ref("");

async function greet() {
  //.get()
    resp =  request({
      method: 'get',
      url:`http://192.168.100.223:18060/api/open/process/addWhite`,
      params:{topicName:'/workshop1/line1/station1'}
    }).then(resp=>{
      console.log(resp)
      message.value = resp.msg
    }).catch(err=>{
      console.log(err)
    });
    console.log(resp)
    

}
</script>

<template>
  <form class="row" @submit.prevent="greet">
    <button type="submit">Send</button>
  </form>

  <p>{{ message }}</p>
</template>
